﻿/*
 * 由SharpDevelop创建。
 * 用户： xieen
 * 日期: 2013-08-14
 * 时间: 14:39
 * 
 * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
 */
using System;

namespace GoF23Learning._03.Builder_Pattern
{
	/// <summary>
	/// Description of Director.
	/// </summary>
	public class Director
	{
		CarBuilder builder;
		public Director(CarBuilder builder)
		{
			this.builder = builder;
		}
 
		public     Car Construct() {  
			
			this.builder.BuildEngine();			
			this.builder.BuildFrame();			
			this.builder.BuildWheels();
			this.builder.BuildDoors();
			
			return this.builder.GetCar();　　　　  
　　		} 

		
	}
}
